package com.shanxia.im.sdk.server.constant;

/**
 * 常量
 */
public interface IMConstant {
	/**
	 消息头长度为8个字节
	 */
	int DATA_HEADER_LENGTH = 8;

	String KEY_ACCOUNT = "account";

	String KEY_QUIETLY_CLOSE = "quietlyClose";

	String HEARTBEAT_KEY = "heartbeat";
	
	int CLIENT_HEARTBEAT = 102;
	 
	String CLIENT_CONNECT_CLOSED = "client_closed";
	
	interface ProtobufType {
		byte S_H_RQ = 1;
		byte C_H_RS = 0;
		byte MESSAGE = 2;
		byte REPLY_BODY = 4;
	}

	interface MessageAction {
		/*
		 内置消息类型
		 被其他设备登录挤下线消息
		 */
		String ACTION_OFFLINE = "999";
	}
}
